<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>商家完善资料</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
  
    <link rel="stylesheet" href="../plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/AdminLTE.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="../css/style.css">
	<script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="../plugins/bootstrap/js/bootstrap.min.js"></script>
   
    
</head>

<body class="hold-transition skin-red sidebar-mini" >



            <!-- 正文区域 -->
            <section class="content">

                <div class="box-body">

                    <!--tab页-->
                    <div class="nav-tabs-custom">

                        <!--tab头-->
                        <ul class="nav nav-tabs">
                       		
                            <li class="active">
                                <a href="#home" data-toggle="tab">商家信息</a>                             
                            </li>                            
                        </ul>
                        <!--tab头/-->
						
                        <!--tab内容-->
                        <div class="tab-content">

                            <!--表单内容-->
                            <div class="tab-pane active" id="home">
                                <div class="row data-type">                                  

                                    <div class="col-md-2 title">公司名称</div>
                                    <div class="col-md-10 data">
                                        <input type="hidden" name="sellerId" th:value="${sel.sellerId}">
                                        <input type="text" th:value="${sel.name}" name="name" class="form-control"   placeholder="公司名称" >
                                    </div>
									
									<div class="col-md-2 title">公司手机</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.mobile}" name="mobile" class="form-control"  placeholder="公司手机" >
                                    </div>
                                    
                                    <div class="col-md-2 title">公司电话</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.telephone}" name="telephone" class="form-control"    placeholder="公司电话" >
                                    </div>
                                    
                                    <div class="col-md-2 title">公司详细地址</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.addressDetail}" name="addressDetail" class="form-control"    placeholder="公司详细地址" >
                                    </div>
                                    
                                    <div class="col-md-2 title">联系人姓名</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.linkmanName}" name="linkmanName" class="form-control"   placeholder="联系人姓名" >
                                    </div>
                                    
                                    <div class="col-md-2 title">联系人QQ</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.linkmanQq}" name="linkmanQq" class="form-control"   placeholder="联系人QQ" >
                                    </div>
                                    
                                    <div class="col-md-2 title">联系人手机</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.linkmanMobile}" name="linkmanMobile" class="form-control"    placeholder="联系人手机" >
                                    </div>
                                    
                                    <div class="col-md-2 title">联系人EMAIL</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.linkmanEmail}" name="linkmanEmail" class="form-control"   placeholder="联系人EMAIL" >
                                    </div>
                                    
                                    <div class="col-md-2 title">营业执照号</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.licenseNumber}" name="licenseNumber" class="form-control"   placeholder="营业执照号" >
                                    </div>
                                     
                                    <div class="col-md-2 title">税务登记证号</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.taxNumber}" name="taxNumber" class="form-control"   placeholder="税务登记证号" >
                                    </div>
                                    
 									<div class="col-md-2 title">组织机构代码证</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.orgNumber}" name="orgNumber" class="form-control"  placeholder="组织机构代码证" >
                                    </div>
                                    
                                    <div class="col-md-2 title">法定代表人</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.legalPerson}" name="legalPerson" class="form-control"   placeholder="法定代表人" >
                                    </div>
                                    
 									<div class="col-md-2 title">法定代表人身份证号</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.legalPersonCardId}" name="legalPersonCardId" class="form-control"   placeholder="法定代表人身份证号" >
                                    </div>

 									<div class="col-md-2 title">开户行名称</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.bankUser}" name="bankUser" class="form-control" placeholder="开户行名称" >
                                    </div>
                                    
                                    <div class="col-md-2 title">开户行支行</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.bankName}" name="bankName" class="form-control"   placeholder="开户行支行" >
                                    </div>

                                    <div class="col-md-2 title">银行账号</div>
                                    <div class="col-md-10 data">
                                        <input type="text" th:value="${sel.bankCard}" name="bankCard" class="form-control"   placeholder="银行账号" >
                                    </div>
                                    
                                </div>
                            </div>
                            
                            
                           
                            
                        </div>
                        <!--tab内容/-->
						<!--表单内容/-->
							 
                    </div>
                 	
                 	
                 	
                 	
                   </div>
                  <div class="btn-toolbar list-toolbar">
				      <button class="btn btn-primary" ><i class="fa fa-save"></i>保存</button>
				      <a  data-toggle="modal" onclick="updateGet()" class="btn btn-danger">提交</a>
				  </div>
			
            </section>
            <!-- 正文区域 /-->
			
       
</body>
<script type="text/javascript">

    function updateGet() {
        $.ajax({
            url:"/seller/getUpdateSeller",
            dataType:"json",
            type:"post",
            data:{
                sellerId:$("[name='sellerId']").val(),
                name:$("[name='name']").val(),
                mobile:$("[name='mobile']").val(),
                telephone:$("[name='telephone']").val(),
                addressDetail:$("[name='addressDetail']").val(),
                linkmanName:$("[name='linkmanName']").val(),
                linkmanQq:$("[name='linkmanQq']").val(),
                linkmanMobile:$("[name='linkmanMobile']").val(),
                linkmanEmail:$("[name='linkmanEmail']").val(),
                licenseNumber:$("[name='licenseNumber']").val(),
                taxNumber:$("[name='taxNumber']").val(),
                orgNumber:$("[name='orgNumber']").val(),
                legalPerson:$("[name='legalPerson']").val(),
                legalPersonCardId:$("[name='legalPersonCardId']").val(),
                bankUser:$("[name='bankUser']").val(),
                bankName:$("[name='bankName']").val(),
                bankCard:$("[name='bankCard']").val()
            },
            async:false,
            success:function (result) {
                if (result.code == 10009){
                    alert("信息修改成功!");
                }else if (result.code == 10010){
                    alert(result.message)
                }
            },error:function (result) {
                alert(result.message);
            }
        })
    }
</script>
</html>